<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SkyGameEngine2d: DefultWidget类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="shpe.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SkyGameEngine2d
   &#160;<span id="projectnumber">0.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="class_defult_widget-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">DefultWidget类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>游戏默认窗口控件  
 <a href="class_defult_widget.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_defult_widget_8h_source.html">DefultWidget.h</a>&gt;</code></p>
<div class="dynheader">
类 DefultWidget 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_defult_widget.png" usemap="#DefultWidget_map" alt=""/>
  <map id="DefultWidget_map" name="DefultWidget_map">
<area href="class_widget.html" title="控件基类" alt="Widget" shape="rect" coords="60,112,171,136"/>
<area href="class_i_movable_object.html" title="可执行位移动作的接口" alt="IMovableObject" shape="rect" coords="0,56,111,80"/>
<area href="class_object.html" alt="Object&lt; Widget &gt;" shape="rect" coords="121,56,232,80"/>
<area href="class_i_actable_object.html" title="可执行动作对象的接口" alt="IActableObject" shape="rect" coords="0,0,111,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a174732c65f706b58fc9ef39e0d7dde3a"><td class="memItemLeft" align="right" valign="top"><a id="a174732c65f706b58fc9ef39e0d7dde3a"></a>
static <a class="el" href="class_defult_widget.html">DefultWidget</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>create</b> ()</td></tr>
<tr class="separator:a174732c65f706b58fc9ef39e0d7dde3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_static_methods_class_widget"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_class_widget')"><img src="closed.png" alt="-"/>&#160;静态 Public 成员函数 继承自 <a class="el" href="class_widget.html">Widget</a></td></tr>
<tr class="memitem:a5e89aada9763ba842961246736b1b8ed inherit pub_static_methods_class_widget"><td class="memItemLeft" align="right" valign="top"><a id="a5e89aada9763ba842961246736b1b8ed"></a>
static <a class="el" href="class_widget.html">Widget</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>create</b> (<a class="el" href="class_widget.html">Widget</a> *parent=nullptr)</td></tr>
<tr class="separator:a5e89aada9763ba842961246736b1b8ed inherit pub_static_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:a908a024e3c55a69454b20a6e2239301d"><td class="memItemLeft" align="right" valign="top"><a id="a908a024e3c55a69454b20a6e2239301d"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>DefultWidget</b> (<a class="el" href="class_widget.html">Widget</a> *)</td></tr>
<tr class="separator:a908a024e3c55a69454b20a6e2239301d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a92655c22800a5be191238d34d163d803"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_defult_widget.html#a92655c22800a5be191238d34d163d803">getDefultWidth</a> () const override</td></tr>
<tr class="memdesc:a92655c22800a5be191238d34d163d803"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取这个控件的默认宽度  <a href="#a92655c22800a5be191238d34d163d803">更多...</a><br /></td></tr>
<tr class="separator:a92655c22800a5be191238d34d163d803"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b1ac889ada43cec68c422ddaf487139"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_defult_widget.html#a5b1ac889ada43cec68c422ddaf487139">getDefultHeight</a> () const override</td></tr>
<tr class="memdesc:a5b1ac889ada43cec68c422ddaf487139"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取这个控件的默认高度  <a href="#a5b1ac889ada43cec68c422ddaf487139">更多...</a><br /></td></tr>
<tr class="separator:a5b1ac889ada43cec68c422ddaf487139"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab041d606df3c6c2db740875f97bef07b"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_defult_widget.html#ab041d606df3c6c2db740875f97bef07b">onMousePressEvent</a> (<a class="el" href="class_event_mouse.html">EventMouse</a> *event) override</td></tr>
<tr class="memdesc:ab041d606df3c6c2db740875f97bef07b"><td class="mdescLeft">&#160;</td><td class="mdescRight">鼠标键按下事件  <a href="#ab041d606df3c6c2db740875f97bef07b">更多...</a><br /></td></tr>
<tr class="separator:ab041d606df3c6c2db740875f97bef07b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1fabd4a6f7c78ba39f8b136b8c7c3831"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_defult_widget.html#a1fabd4a6f7c78ba39f8b136b8c7c3831">onMouseReleaseEvent</a> (<a class="el" href="class_event_mouse.html">EventMouse</a> *event) override</td></tr>
<tr class="memdesc:a1fabd4a6f7c78ba39f8b136b8c7c3831"><td class="mdescLeft">&#160;</td><td class="mdescRight">鼠标键弹起事件  <a href="#a1fabd4a6f7c78ba39f8b136b8c7c3831">更多...</a><br /></td></tr>
<tr class="separator:a1fabd4a6f7c78ba39f8b136b8c7c3831"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad84da2f700815e39718c926202ac9180"><td class="memItemLeft" align="right" valign="top"><a id="ad84da2f700815e39718c926202ac9180"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><b>onEvent</b> (<a class="el" href="class_i_event.html">IEvent</a> *e) override</td></tr>
<tr class="separator:ad84da2f700815e39718c926202ac9180"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_class_widget"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_class_widget')"><img src="closed.png" alt="-"/>&#160;Protected 成员函数 继承自 <a class="el" href="class_widget.html">Widget</a></td></tr>
<tr class="memitem:ab74d90e08f161ca59b490e6b0a40a3a1 inherit pro_methods_class_widget"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#ab74d90e08f161ca59b490e6b0a40a3a1">Widget</a> (<a class="el" href="class_widget.html">Widget</a> *parent=nullptr)</td></tr>
<tr class="memdesc:ab74d90e08f161ca59b490e6b0a40a3a1 inherit pro_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造  <a href="class_widget.html#ab74d90e08f161ca59b490e6b0a40a3a1">更多...</a><br /></td></tr>
<tr class="separator:ab74d90e08f161ca59b490e6b0a40a3a1 inherit pro_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa94c38f97715c860044c4735f010572 inherit pro_methods_class_widget"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#afa94c38f97715c860044c4735f010572">init</a> ()</td></tr>
<tr class="memdesc:afa94c38f97715c860044c4735f010572 inherit pro_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">初始化窗口  <a href="class_widget.html#afa94c38f97715c860044c4735f010572">更多...</a><br /></td></tr>
<tr class="separator:afa94c38f97715c860044c4735f010572 inherit pro_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8426dc14f6e8319d8d78af10d33cd379 inherit pro_methods_class_widget"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a8426dc14f6e8319d8d78af10d33cd379">onKeyPressEvent</a> (<a class="el" href="class_event_key.html">EventKey</a> *event)</td></tr>
<tr class="memdesc:a8426dc14f6e8319d8d78af10d33cd379 inherit pro_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">键盘中的键按下事件  <a href="class_widget.html#a8426dc14f6e8319d8d78af10d33cd379">更多...</a><br /></td></tr>
<tr class="separator:a8426dc14f6e8319d8d78af10d33cd379 inherit pro_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ea16c64e0036d6c3e8ab21744af4cf2 inherit pro_methods_class_widget"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a9ea16c64e0036d6c3e8ab21744af4cf2">onKeyReleaseEvent</a> (<a class="el" href="class_event_key.html">EventKey</a> *event)</td></tr>
<tr class="memdesc:a9ea16c64e0036d6c3e8ab21744af4cf2 inherit pro_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">键盘中的键弹起事件  <a href="class_widget.html#a9ea16c64e0036d6c3e8ab21744af4cf2">更多...</a><br /></td></tr>
<tr class="separator:a9ea16c64e0036d6c3e8ab21744af4cf2 inherit pro_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada1cd30b701b453b7203caaa4501e246 inherit pro_methods_class_widget"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#ada1cd30b701b453b7203caaa4501e246">onMouseMoveEvent</a> (<a class="el" href="class_event_mouse.html">EventMouse</a> *event)</td></tr>
<tr class="memdesc:ada1cd30b701b453b7203caaa4501e246 inherit pro_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">鼠标移动事件  <a href="class_widget.html#ada1cd30b701b453b7203caaa4501e246">更多...</a><br /></td></tr>
<tr class="separator:ada1cd30b701b453b7203caaa4501e246 inherit pro_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7db85ef0baa4f2b23f26631f5b57aca inherit pro_methods_class_widget"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#ae7db85ef0baa4f2b23f26631f5b57aca">onMouseDoubleClickedEvent</a> (<a class="el" href="class_event_mouse.html">EventMouse</a> *event)</td></tr>
<tr class="memdesc:ae7db85ef0baa4f2b23f26631f5b57aca inherit pro_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">鼠标双击事件  <a href="class_widget.html#ae7db85ef0baa4f2b23f26631f5b57aca">更多...</a><br /></td></tr>
<tr class="separator:ae7db85ef0baa4f2b23f26631f5b57aca inherit pro_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af0efa327209a1bc92a4bba089f59023d inherit pro_methods_class_widget"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#af0efa327209a1bc92a4bba089f59023d">onMouseLeavesEvent</a> (<a class="el" href="class_widget_event.html">WidgetEvent</a> *event)</td></tr>
<tr class="memdesc:af0efa327209a1bc92a4bba089f59023d inherit pro_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">鼠标进入窗口  <a href="class_widget.html#af0efa327209a1bc92a4bba089f59023d">更多...</a><br /></td></tr>
<tr class="separator:af0efa327209a1bc92a4bba089f59023d inherit pro_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aadc31befd9cc8f5cd74cc5d0fc2e889d inherit pro_methods_class_widget"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#aadc31befd9cc8f5cd74cc5d0fc2e889d">onMouseEnterEvent</a> (<a class="el" href="class_widget_event.html">WidgetEvent</a> *event)</td></tr>
<tr class="memdesc:aadc31befd9cc8f5cd74cc5d0fc2e889d inherit pro_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">鼠标离开窗口  <a href="class_widget.html#aadc31befd9cc8f5cd74cc5d0fc2e889d">更多...</a><br /></td></tr>
<tr class="separator:aadc31befd9cc8f5cd74cc5d0fc2e889d inherit pro_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53f5b2041a68628dfd5920192cfa4f9c inherit pro_methods_class_widget"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a53f5b2041a68628dfd5920192cfa4f9c">onFocusInEvent</a> (<a class="el" href="class_event_focus.html">EventFocus</a> *event)</td></tr>
<tr class="memdesc:a53f5b2041a68628dfd5920192cfa4f9c inherit pro_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">获得焦点事件  <a href="class_widget.html#a53f5b2041a68628dfd5920192cfa4f9c">更多...</a><br /></td></tr>
<tr class="separator:a53f5b2041a68628dfd5920192cfa4f9c inherit pro_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b7831f26a5688762b730532e1473148 inherit pro_methods_class_widget"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a1b7831f26a5688762b730532e1473148">onFocusOutEvent</a> (<a class="el" href="class_event_focus.html">EventFocus</a> *event)</td></tr>
<tr class="memdesc:a1b7831f26a5688762b730532e1473148 inherit pro_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">失去焦点事件  <a href="class_widget.html#a1b7831f26a5688762b730532e1473148">更多...</a><br /></td></tr>
<tr class="separator:a1b7831f26a5688762b730532e1473148 inherit pro_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b92c54bbfbc7ecc62dc7496f0735468 inherit pro_methods_class_widget"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a2b92c54bbfbc7ecc62dc7496f0735468">onCharacterEvent</a> (<a class="el" href="class_event_character.html">EventCharacter</a> *e)</td></tr>
<tr class="memdesc:a2b92c54bbfbc7ecc62dc7496f0735468 inherit pro_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">字符消息事件  <a href="class_widget.html#a2b92c54bbfbc7ecc62dc7496f0735468">更多...</a><br /></td></tr>
<tr class="separator:a2b92c54bbfbc7ecc62dc7496f0735468 inherit pro_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a81335813f016195213e7caaa9bfedd4e inherit pro_methods_class_widget"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a81335813f016195213e7caaa9bfedd4e">onMoveEvent</a> (<a class="el" href="class_event_widget_move.html">EventWidgetMove</a> *e)</td></tr>
<tr class="memdesc:a81335813f016195213e7caaa9bfedd4e inherit pro_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">窗口移动事件  <a href="class_widget.html#a81335813f016195213e7caaa9bfedd4e">更多...</a><br /></td></tr>
<tr class="separator:a81335813f016195213e7caaa9bfedd4e inherit pro_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa59e00b37382ac7c09f4aa30bd142603 inherit pro_methods_class_widget"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#aa59e00b37382ac7c09f4aa30bd142603">onActiveEvent</a> (<a class="el" href="class_event_widget_active.html">EventWidgetActive</a> *e)</td></tr>
<tr class="memdesc:aa59e00b37382ac7c09f4aa30bd142603 inherit pro_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">窗口进入活动状态的事件  <a href="class_widget.html#aa59e00b37382ac7c09f4aa30bd142603">更多...</a><br /></td></tr>
<tr class="separator:aa59e00b37382ac7c09f4aa30bd142603 inherit pro_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ff64c02aadfe8fbb392d1f0ba0435bd inherit pro_methods_class_widget"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a8ff64c02aadfe8fbb392d1f0ba0435bd">onDeactiveEvent</a> (<a class="el" href="class_event_widget_active.html">EventWidgetActive</a> *e)</td></tr>
<tr class="memdesc:a8ff64c02aadfe8fbb392d1f0ba0435bd inherit pro_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">窗口失去活动状态的事件  <a href="class_widget.html#a8ff64c02aadfe8fbb392d1f0ba0435bd">更多...</a><br /></td></tr>
<tr class="separator:a8ff64c02aadfe8fbb392d1f0ba0435bd inherit pro_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa0ed2836fa08df251b072f17c0e3ae1e inherit pro_methods_class_widget"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#aa0ed2836fa08df251b072f17c0e3ae1e">onResizeEvent</a> (<a class="el" href="class_event_resize.html">EventResize</a> *e)</td></tr>
<tr class="memdesc:aa0ed2836fa08df251b072f17c0e3ae1e inherit pro_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">窗口的尺寸改变的事件  <a href="class_widget.html#aa0ed2836fa08df251b072f17c0e3ae1e">更多...</a><br /></td></tr>
<tr class="separator:aa0ed2836fa08df251b072f17c0e3ae1e inherit pro_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae64942da0517fb6a4ad84365d2a219e0 inherit pro_methods_class_widget"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_widget.html">Widget</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#ae64942da0517fb6a4ad84365d2a219e0">getActiveSibling</a> () const</td></tr>
<tr class="memdesc:ae64942da0517fb6a4ad84365d2a219e0 inherit pro_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取活动的兄弟窗口  <a href="class_widget.html#ae64942da0517fb6a4ad84365d2a219e0">更多...</a><br /></td></tr>
<tr class="separator:ae64942da0517fb6a4ad84365d2a219e0 inherit pro_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae582d3f5cc2e550fa54bcb8176b7156a inherit pro_methods_class_widget"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="class_matrix4_x4.html">Matrix4X4</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#ae582d3f5cc2e550fa54bcb8176b7156a">getParentMat</a> ()</td></tr>
<tr class="memdesc:ae582d3f5cc2e550fa54bcb8176b7156a inherit pro_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取父窗口的矩阵  <a href="class_widget.html#ae582d3f5cc2e550fa54bcb8176b7156a">更多...</a><br /></td></tr>
<tr class="separator:ae582d3f5cc2e550fa54bcb8176b7156a inherit pro_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9101f0e558c732ba9736940806d32bd8 inherit pro_methods_class_widget"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a9101f0e558c732ba9736940806d32bd8">moveToFront</a> ()</td></tr>
<tr class="memdesc:a9101f0e558c732ba9736940806d32bd8 inherit pro_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">移动窗口到前边  <a href="class_widget.html#a9101f0e558c732ba9736940806d32bd8">更多...</a><br /></td></tr>
<tr class="separator:a9101f0e558c732ba9736940806d32bd8 inherit pro_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2796797c9017258d68c5e656e21c846d inherit pro_methods_class_widget"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a2796797c9017258d68c5e656e21c846d">captureFocus</a> ()</td></tr>
<tr class="memdesc:a2796797c9017258d68c5e656e21c846d inherit pro_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">捕获焦点  <a href="class_widget.html#a2796797c9017258d68c5e656e21c846d">更多...</a><br /></td></tr>
<tr class="separator:a2796797c9017258d68c5e656e21c846d inherit pro_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3acb7451a80e5499e3053a0986978e2 inherit pro_methods_class_widget"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#aa3acb7451a80e5499e3053a0986978e2">releaseFocus</a> ()</td></tr>
<tr class="memdesc:aa3acb7451a80e5499e3053a0986978e2 inherit pro_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">释放焦点  <a href="class_widget.html#aa3acb7451a80e5499e3053a0986978e2">更多...</a><br /></td></tr>
<tr class="separator:aa3acb7451a80e5499e3053a0986978e2 inherit pro_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aedc9813bb44a1bf62a670edba0de5a3d inherit pro_methods_class_widget"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="struct_widget_1_1_style_infor.html">StyleInfor</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#aedc9813bb44a1bf62a670edba0de5a3d">getStyleInfor</a> () const</td></tr>
<tr class="memdesc:aedc9813bb44a1bf62a670edba0de5a3d inherit pro_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取当前窗口状态的风格  <a href="class_widget.html#aedc9813bb44a1bf62a670edba0de5a3d">更多...</a><br /></td></tr>
<tr class="separator:aedc9813bb44a1bf62a670edba0de5a3d inherit pro_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4572457be05d33309f087c7ce876d73e inherit pro_methods_class_widget"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="struct_widget_1_1_style_infor.html">StyleInfor</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a4572457be05d33309f087c7ce876d73e">getStyleInforByState</a> (<a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71">WidgetState</a> state) const</td></tr>
<tr class="memdesc:a4572457be05d33309f087c7ce876d73e inherit pro_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取指定窗口状态的风格  <a href="class_widget.html#a4572457be05d33309f087c7ce876d73e">更多...</a><br /></td></tr>
<tr class="separator:a4572457be05d33309f087c7ce876d73e inherit pro_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af84e4cd94f1b8123fc3649780e1e1908 inherit pro_methods_class_widget"><td class="memItemLeft" align="right" valign="top"><a id="af84e4cd94f1b8123fc3649780e1e1908"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setCurrentWidgetState</b> (<a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71">WidgetState</a> state)</td></tr>
<tr class="separator:af84e4cd94f1b8123fc3649780e1e1908 inherit pro_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acebd3fa5b796043cf467360b81f645be inherit pro_methods_class_widget"><td class="memItemLeft" align="right" valign="top"><a id="acebd3fa5b796043cf467360b81f645be"></a>
<a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71">WidgetState</a>&#160;</td><td class="memItemRight" valign="bottom"><b>getCurrentWidgetState</b> () const</td></tr>
<tr class="separator:acebd3fa5b796043cf467360b81f645be inherit pro_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_class_object"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_class_object')"><img src="closed.png" alt="-"/>&#160;Protected 成员函数 继承自 <a class="el" href="class_object.html">Object&lt; Widget &gt;</a></td></tr>
<tr class="memitem:abbe7e8e32c5b4fa20c5f0ef918aba3df inherit pro_methods_class_object"><td class="memItemLeft" align="right" valign="top"><a id="abbe7e8e32c5b4fa20c5f0ef918aba3df"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Object</b> (<a class="el" href="class_widget.html">Widget</a> *parent=nullptr)</td></tr>
<tr class="separator:abbe7e8e32c5b4fa20c5f0ef918aba3df inherit pro_methods_class_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
额外继承的成员函数</h2></td></tr>
<tr class="inherit_header pub_types_class_widget"><td colspan="2" onclick="javascript:toggleInherit('pub_types_class_widget')"><img src="closed.png" alt="-"/>&#160;Public 类型 继承自 <a class="el" href="class_widget.html">Widget</a></td></tr>
<tr class="memitem:aa98dcd44b71edaf2a5a1090503f4978c inherit pub_types_class_widget"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#aa98dcd44b71edaf2a5a1090503f4978c">FocusPolicy</a> { <a class="el" href="class_widget.html#aa98dcd44b71edaf2a5a1090503f4978ca3ea871a87eb027a222803fee59e6fe22">FocusPolicy::TabFocus</a> = 0x01, 
<a class="el" href="class_widget.html#aa98dcd44b71edaf2a5a1090503f4978ca2f9f3e9d371f1c186deecf6a206fa437">FocusPolicy::ClickFocus</a> = 0x10, 
<a class="el" href="class_widget.html#aa98dcd44b71edaf2a5a1090503f4978caa11f91df0170ecddf92e6413a9eacaad">FocusPolicy::NoFocus</a> = 0x00
 }</td></tr>
<tr class="memdesc:aa98dcd44b71edaf2a5a1090503f4978c"><td class="mdescLeft">&#160;</td><td class="mdescRight">控件获取焦点的策略  <a href="class_widget.html#aa98dcd44b71edaf2a5a1090503f4978c">更多...</a><br /></td></tr>
<tr class="separator:aa98dcd44b71edaf2a5a1090503f4978c inherit pub_types_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc894fe0bbff0d8d7f0e9705beb99a71 inherit pub_types_class_widget"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71">WidgetState</a> { <a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71ab9f5c797ebbf55adccdd8539a65a0241">WidgetState::Disabled</a>, 
<a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71aeee0168be69b854c20621fc6f01cc3fc">WidgetState::Hover</a>, 
<a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71ad78a68f6a85421ae121c2cb5b73a1040">WidgetState::Pressed</a>, 
<a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71a960b44c579bc2f6818d2daaf9e4c16f0">WidgetState::Normal</a>
 }</td></tr>
<tr class="memdesc:afc894fe0bbff0d8d7f0e9705beb99a71"><td class="mdescLeft">&#160;</td><td class="mdescRight">窗口的状态  <a href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71">更多...</a><br /></td></tr>
<tr class="separator:afc894fe0bbff0d8d7f0e9705beb99a71 inherit pub_types_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add6efbd96f018154a8b08fe89a43c097 inherit pub_types_class_widget"><td class="memItemLeft" align="right" valign="top"><a id="add6efbd96f018154a8b08fe89a43c097"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>MouseEventCallback</b> = std::function&lt; void(<a class="el" href="class_event_mouse.html">EventMouse</a> *)&gt;</td></tr>
<tr class="separator:add6efbd96f018154a8b08fe89a43c097 inherit pub_types_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18e999c0ab69668e212298aa6da5ed6b inherit pub_types_class_widget"><td class="memItemLeft" align="right" valign="top"><a id="a18e999c0ab69668e212298aa6da5ed6b"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>KeyEventCallback</b> = std::function&lt; void(<a class="el" href="class_event_key.html">EventKey</a> *)&gt;</td></tr>
<tr class="separator:a18e999c0ab69668e212298aa6da5ed6b inherit pub_types_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_widget"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_widget')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="class_widget.html">Widget</a></td></tr>
<tr class="memitem:aa24f66bcbaaec6d458b0980e8c8eae65 inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top"><a id="aa24f66bcbaaec6d458b0980e8c8eae65"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#aa24f66bcbaaec6d458b0980e8c8eae65">~Widget</a> ()</td></tr>
<tr class="memdesc:aa24f66bcbaaec6d458b0980e8c8eae65 inherit pub_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">析构 <br /></td></tr>
<tr class="separator:aa24f66bcbaaec6d458b0980e8c8eae65 inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad01089097b612ad5f78825fe6055f8aa inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#ad01089097b612ad5f78825fe6055f8aa">setBackgroundImage</a> (std::unique_ptr&lt; <a class="el" href="class_scale9_image.html">Scale9Image</a> &gt; image, <a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71">WidgetState</a> state=<a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71a960b44c579bc2f6818d2daaf9e4c16f0">WidgetState::Normal</a>)</td></tr>
<tr class="memdesc:ad01089097b612ad5f78825fe6055f8aa inherit pub_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">将派生类的 shared_ptr 转为 widget 的 shared_ptr  <a href="class_widget.html#ad01089097b612ad5f78825fe6055f8aa">更多...</a><br /></td></tr>
<tr class="separator:ad01089097b612ad5f78825fe6055f8aa inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2962f465ea53324b3216f4d70f0d301e inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a2962f465ea53324b3216f4d70f0d301e">setBackgroundImage</a> (const SpriteFrameSharedPtr &amp;sprite_frame, <a class="el" href="class_rect.html">Rect</a> cap=Rect::Zero, <a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71">WidgetState</a> state=<a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71a960b44c579bc2f6818d2daaf9e4c16f0">WidgetState::Normal</a>)</td></tr>
<tr class="memdesc:a2962f465ea53324b3216f4d70f0d301e inherit pub_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置背景图片  <a href="class_widget.html#a2962f465ea53324b3216f4d70f0d301e">更多...</a><br /></td></tr>
<tr class="separator:a2962f465ea53324b3216f4d70f0d301e inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6263bff3dbddeb4406979a5f0ea63049 inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a6263bff3dbddeb4406979a5f0ea63049">setBackgroundImage</a> (const std::wstring &amp;file_name, <a class="el" href="class_rect.html">Rect</a> cap=Rect::Zero, <a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71">WidgetState</a> state=<a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71a960b44c579bc2f6818d2daaf9e4c16f0">WidgetState::Normal</a>)</td></tr>
<tr class="memdesc:a6263bff3dbddeb4406979a5f0ea63049 inherit pub_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置背景图片  <a href="class_widget.html#a6263bff3dbddeb4406979a5f0ea63049">更多...</a><br /></td></tr>
<tr class="separator:a6263bff3dbddeb4406979a5f0ea63049 inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0812a53f0f3aa840cb6dd0fb86322229 inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a0812a53f0f3aa840cb6dd0fb86322229">setFont</a> (const <a class="el" href="class_font.html">Font</a> &amp;font, <a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71">WidgetState</a> state=<a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71a960b44c579bc2f6818d2daaf9e4c16f0">WidgetState::Normal</a>)</td></tr>
<tr class="memdesc:a0812a53f0f3aa840cb6dd0fb86322229 inherit pub_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置字体  <a href="class_widget.html#a0812a53f0f3aa840cb6dd0fb86322229">更多...</a><br /></td></tr>
<tr class="separator:a0812a53f0f3aa840cb6dd0fb86322229 inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaca6d21146c61f29c2f12538126cc3af inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#aaca6d21146c61f29c2f12538126cc3af">setTextColor</a> (const <a class="el" href="class_color.html">Color</a> &amp;color, <a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71">WidgetState</a> state=<a class="el" href="class_widget.html#afc894fe0bbff0d8d7f0e9705beb99a71a960b44c579bc2f6818d2daaf9e4c16f0">WidgetState::Normal</a>)</td></tr>
<tr class="memdesc:aaca6d21146c61f29c2f12538126cc3af inherit pub_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置文字的颜色  <a href="class_widget.html#aaca6d21146c61f29c2f12538126cc3af">更多...</a><br /></td></tr>
<tr class="separator:aaca6d21146c61f29c2f12538126cc3af inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5e436fd5203d231d70c4336cfad6050 inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#ab5e436fd5203d231d70c4336cfad6050">setEnabled</a> (bool enabled)</td></tr>
<tr class="memdesc:ab5e436fd5203d231d70c4336cfad6050 inherit pub_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置这个widget是否禁用  <a href="class_widget.html#ab5e436fd5203d231d70c4336cfad6050">更多...</a><br /></td></tr>
<tr class="separator:ab5e436fd5203d231d70c4336cfad6050 inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad31fc3f6a09f243a4ec1cc170987e467 inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#ad31fc3f6a09f243a4ec1cc170987e467">isEnabled</a> () const</td></tr>
<tr class="memdesc:ad31fc3f6a09f243a4ec1cc170987e467 inherit pub_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">这个widget是否被禁用  <a href="class_widget.html#ad31fc3f6a09f243a4ec1cc170987e467">更多...</a><br /></td></tr>
<tr class="separator:ad31fc3f6a09f243a4ec1cc170987e467 inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd968a1e776d9012d6e4250b634d14cf inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_widget.html">Widget</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#acd968a1e776d9012d6e4250b634d14cf">getChildAtPos</a> (const <a class="el" href="class_vector2.html">Vector2</a> &amp;pos, const bool allowDisable)</td></tr>
<tr class="memdesc:acd968a1e776d9012d6e4250b634d14cf inherit pub_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取某个位置的子控件的弱引用 ，如果不存在 则返回为null  <a href="class_widget.html#acd968a1e776d9012d6e4250b634d14cf">更多...</a><br /></td></tr>
<tr class="separator:acd968a1e776d9012d6e4250b634d14cf inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a391ce71cb3d5b83186d6c8f8aa894447 inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a391ce71cb3d5b83186d6c8f8aa894447">move</a> (float x, float y)</td></tr>
<tr class="memdesc:a391ce71cb3d5b83186d6c8f8aa894447 inherit pub_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">移动控件到某个位置（相对于父控件）  <a href="class_widget.html#a391ce71cb3d5b83186d6c8f8aa894447">更多...</a><br /></td></tr>
<tr class="separator:a391ce71cb3d5b83186d6c8f8aa894447 inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad482afc0226b604e024b5213a67f4269 inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#ad482afc0226b604e024b5213a67f4269">move</a> (const <a class="el" href="class_vector2.html">Vector2</a> &amp;pos)</td></tr>
<tr class="memdesc:ad482afc0226b604e024b5213a67f4269 inherit pub_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">移动控件到某个位置（相对于父控件）  <a href="class_widget.html#ad482afc0226b604e024b5213a67f4269">更多...</a><br /></td></tr>
<tr class="separator:ad482afc0226b604e024b5213a67f4269 inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a185d091871a0343ab304701d4b57b70d inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_vector2.html">Vector2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a185d091871a0343ab304701d4b57b70d">getPosition</a> () const override</td></tr>
<tr class="memdesc:a185d091871a0343ab304701d4b57b70d inherit pub_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取控件左下角的位置（相对于父控件）  <a href="class_widget.html#a185d091871a0343ab304701d4b57b70d">更多...</a><br /></td></tr>
<tr class="separator:a185d091871a0343ab304701d4b57b70d inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51acbd9bdb6838fcee359286cc58b7e0 inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a51acbd9bdb6838fcee359286cc58b7e0">setPosition</a> (const <a class="el" href="class_vector2.html">Vector2</a> &amp;pos) override</td></tr>
<tr class="memdesc:a51acbd9bdb6838fcee359286cc58b7e0 inherit pub_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置widget 的位置 等价于 <a class="el" href="class_widget.html#ad482afc0226b604e024b5213a67f4269" title="移动控件到某个位置（相对于父控件）">move(const Vector2 &amp; pos)</a>  <a href="class_widget.html#a51acbd9bdb6838fcee359286cc58b7e0">更多...</a><br /></td></tr>
<tr class="separator:a51acbd9bdb6838fcee359286cc58b7e0 inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a757e7b18d2a387c6c29b29de002d7b07 inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_vector2.html">Vector2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a757e7b18d2a387c6c29b29de002d7b07">getAbsPos</a> () const</td></tr>
<tr class="memdesc:a757e7b18d2a387c6c29b29de002d7b07 inherit pub_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取控件左下角的位置 （绝对坐标，即相对与当前的根窗口）  <a href="class_widget.html#a757e7b18d2a387c6c29b29de002d7b07">更多...</a><br /></td></tr>
<tr class="separator:a757e7b18d2a387c6c29b29de002d7b07 inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9214d2cd50ea54146cfedaec8b7e69f9 inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a9214d2cd50ea54146cfedaec8b7e69f9">setGeometry</a> (const <a class="el" href="class_rect.html">Rect</a> &amp;rect)</td></tr>
<tr class="memdesc:a9214d2cd50ea54146cfedaec8b7e69f9 inherit pub_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置控件的矩形表示  <a href="class_widget.html#a9214d2cd50ea54146cfedaec8b7e69f9">更多...</a><br /></td></tr>
<tr class="separator:a9214d2cd50ea54146cfedaec8b7e69f9 inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abeab8f9b74584ed96093f4aad8df8530 inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="class_rect.html">Rect</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#abeab8f9b74584ed96093f4aad8df8530">getGeometry</a> () const</td></tr>
<tr class="memdesc:abeab8f9b74584ed96093f4aad8df8530 inherit pub_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取控件的矩形表示  <a href="class_widget.html#abeab8f9b74584ed96093f4aad8df8530">更多...</a><br /></td></tr>
<tr class="separator:abeab8f9b74584ed96093f4aad8df8530 inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aadd50305ce9b3e666f597677b8409660 inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#aadd50305ce9b3e666f597677b8409660">resize</a> (const <a class="el" href="class_size.html">Size</a> &amp;size)</td></tr>
<tr class="memdesc:aadd50305ce9b3e666f597677b8409660 inherit pub_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">调整控件的尺寸  <a href="class_widget.html#aadd50305ce9b3e666f597677b8409660">更多...</a><br /></td></tr>
<tr class="separator:aadd50305ce9b3e666f597677b8409660 inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a92ff242cf5edbcfb06c548bb0cb7106a inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="class_size.html">Size</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a92ff242cf5edbcfb06c548bb0cb7106a">getSize</a> () const</td></tr>
<tr class="memdesc:a92ff242cf5edbcfb06c548bb0cb7106a inherit pub_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取控件的尺寸  <a href="class_widget.html#a92ff242cf5edbcfb06c548bb0cb7106a">更多...</a><br /></td></tr>
<tr class="separator:a92ff242cf5edbcfb06c548bb0cb7106a inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7931ceac649bdfe14a7819f771531b95 inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a7931ceac649bdfe14a7819f771531b95">isActive</a> () const</td></tr>
<tr class="memdesc:a7931ceac649bdfe14a7819f771531b95 inherit pub_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取父控件的弱引用  <a href="class_widget.html#a7931ceac649bdfe14a7819f771531b95">更多...</a><br /></td></tr>
<tr class="separator:a7931ceac649bdfe14a7819f771531b95 inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff4a130f23c3d84eae5131baeabf9118 inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#aff4a130f23c3d84eae5131baeabf9118">hasFocus</a> () const</td></tr>
<tr class="memdesc:aff4a130f23c3d84eae5131baeabf9118 inherit pub_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取控件是否拥有焦点  <a href="class_widget.html#aff4a130f23c3d84eae5131baeabf9118">更多...</a><br /></td></tr>
<tr class="separator:aff4a130f23c3d84eae5131baeabf9118 inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae469bb315299916388d717225e71a802 inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#ae469bb315299916388d717225e71a802">isVisible</a> () const</td></tr>
<tr class="memdesc:ae469bb315299916388d717225e71a802 inherit pub_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">控件是否被显示  <a href="class_widget.html#ae469bb315299916388d717225e71a802">更多...</a><br /></td></tr>
<tr class="separator:ae469bb315299916388d717225e71a802 inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a2f8eebacdd20db505b838f1a118c6b inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a4a2f8eebacdd20db505b838f1a118c6b">hide</a> ()</td></tr>
<tr class="memdesc:a4a2f8eebacdd20db505b838f1a118c6b inherit pub_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">隐藏窗口  <a href="class_widget.html#a4a2f8eebacdd20db505b838f1a118c6b">更多...</a><br /></td></tr>
<tr class="separator:a4a2f8eebacdd20db505b838f1a118c6b inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a25ff178539e226b5f30ef0335d060f2b inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a25ff178539e226b5f30ef0335d060f2b">show</a> ()</td></tr>
<tr class="memdesc:a25ff178539e226b5f30ef0335d060f2b inherit pub_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">显示  <a href="class_widget.html#a25ff178539e226b5f30ef0335d060f2b">更多...</a><br /></td></tr>
<tr class="separator:a25ff178539e226b5f30ef0335d060f2b inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad318d341d341d37709fd52f512383f37 inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_camera.html">Camera</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#ad318d341d341d37709fd52f512383f37">getCamera</a> () const</td></tr>
<tr class="memdesc:ad318d341d341d37709fd52f512383f37 inherit pub_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取控件的相机  <a href="class_widget.html#ad318d341d341d37709fd52f512383f37">更多...</a><br /></td></tr>
<tr class="separator:ad318d341d341d37709fd52f512383f37 inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f42d2d0dab8cbd22d415746fd75908a inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a5f42d2d0dab8cbd22d415746fd75908a">setCamera</a> (<a class="el" href="class_camera.html">Camera</a> *camera)</td></tr>
<tr class="memdesc:a5f42d2d0dab8cbd22d415746fd75908a inherit pub_methods_class_widget"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置控件的相机  <a href="class_widget.html#a5f42d2d0dab8cbd22d415746fd75908a">更多...</a><br /></td></tr>
<tr class="separator:a5f42d2d0dab8cbd22d415746fd75908a inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37e6cdf071ea9ba95cc2d8912c06c014 inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top"><a id="a37e6cdf071ea9ba95cc2d8912c06c014"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setFocuse</b> (bool focuse=true)</td></tr>
<tr class="separator:a37e6cdf071ea9ba95cc2d8912c06c014 inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2fe7f595bfa98730a29aeeecbe8011ef inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top"><a id="a2fe7f595bfa98730a29aeeecbe8011ef"></a>
<a class="el" href="class_widget.html#aa98dcd44b71edaf2a5a1090503f4978c">FocusPolicy</a>&#160;</td><td class="memItemRight" valign="bottom"><b>getFocusPolicy</b> () const</td></tr>
<tr class="separator:a2fe7f595bfa98730a29aeeecbe8011ef inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a84bdb00ff2149dfcf2457b945ee04ed9 inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top"><a id="a84bdb00ff2149dfcf2457b945ee04ed9"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setFocusPolicy</b> (<a class="el" href="class_widget.html#aa98dcd44b71edaf2a5a1090503f4978c">FocusPolicy</a> policy)</td></tr>
<tr class="separator:a84bdb00ff2149dfcf2457b945ee04ed9 inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac136f1d6ebf28a59de5925bebb4977c7 inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top"><a id="ac136f1d6ebf28a59de5925bebb4977c7"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isDistributeCapturedInputs</b> () const</td></tr>
<tr class="separator:ac136f1d6ebf28a59de5925bebb4977c7 inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45e13757c625a4833c71a1e841ae3ff9 inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top"><a id="a45e13757c625a4833c71a1e841ae3ff9"></a>
<a class="el" href="class_widget.html">Widget</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>getActiveChiled</b> () const</td></tr>
<tr class="separator:a45e13757c625a4833c71a1e841ae3ff9 inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7212097cea9ba1ff346600cd8784b888 inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top"><a id="a7212097cea9ba1ff346600cd8784b888"></a>
<a class="el" href="class_ui_core.html">UiCore</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>getUiCore</b> () const</td></tr>
<tr class="separator:a7212097cea9ba1ff346600cd8784b888 inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39e84a9430f776db7a8dccd183289459 inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top"><a id="a39e84a9430f776db7a8dccd183289459"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setMousePressEventListener</b> (const MouseEventCallback &amp;call)</td></tr>
<tr class="separator:a39e84a9430f776db7a8dccd183289459 inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac175a5a30f98d7e0eb1d88ee0e35d1f6 inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top"><a id="ac175a5a30f98d7e0eb1d88ee0e35d1f6"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setMouseReleaseEventListener</b> (const MouseEventCallback &amp;call)</td></tr>
<tr class="separator:ac175a5a30f98d7e0eb1d88ee0e35d1f6 inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71099550dfe8f797846dc54bf00776d8 inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top"><a id="a71099550dfe8f797846dc54bf00776d8"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setMouseMoveEventListener</b> (const MouseEventCallback &amp;call)</td></tr>
<tr class="separator:a71099550dfe8f797846dc54bf00776d8 inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1b9b053492e80bd4d597c4791c1dcb5 inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top"><a id="aa1b9b053492e80bd4d597c4791c1dcb5"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setMouseBoubleClickedEventListener</b> (const MouseEventCallback &amp;call)</td></tr>
<tr class="separator:aa1b9b053492e80bd4d597c4791c1dcb5 inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a38086791f878582a9ef3377aeae1b697 inherit pub_methods_class_widget"><td class="memItemLeft" align="right" valign="top"><a id="a38086791f878582a9ef3377aeae1b697"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>visit</b> (<a class="el" href="class_render.html">Render</a> *render, bool parent_change_transfrom_mat)</td></tr>
<tr class="separator:a38086791f878582a9ef3377aeae1b697 inherit pub_methods_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_object"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_object')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="class_object.html">Object&lt; Widget &gt;</a></td></tr>
<tr class="memitem:a5cad887a20ddcd6b7fba1a2465409dd5 inherit pub_methods_class_object"><td class="memItemLeft" align="right" valign="top"><a id="a5cad887a20ddcd6b7fba1a2465409dd5"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>addChildren</b> (<a class="el" href="class_widget.html">Widget</a> *children)</td></tr>
<tr class="separator:a5cad887a20ddcd6b7fba1a2465409dd5 inherit pub_methods_class_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c1fc3c12c298b8319322df6d9b56285 inherit pub_methods_class_object"><td class="memItemLeft" align="right" valign="top"><a id="a6c1fc3c12c298b8319322df6d9b56285"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>removeChildren</b> (<a class="el" href="class_widget.html">Widget</a> *children)</td></tr>
<tr class="separator:a6c1fc3c12c298b8319322df6d9b56285 inherit pub_methods_class_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e5320dbb2c25bba2529531e4724b972 inherit pub_methods_class_object"><td class="memItemLeft" align="right" valign="top"><a id="a7e5320dbb2c25bba2529531e4724b972"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setParent</b> (<a class="el" href="class_widget.html">Widget</a> *parent)</td></tr>
<tr class="separator:a7e5320dbb2c25bba2529531e4724b972 inherit pub_methods_class_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14cfe934104f65fdfd8893067b6afaa0 inherit pub_methods_class_object"><td class="memItemLeft" align="right" valign="top"><a id="a14cfe934104f65fdfd8893067b6afaa0"></a>
<a class="el" href="class_widget.html">Widget</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>getParent</b> () const</td></tr>
<tr class="separator:a14cfe934104f65fdfd8893067b6afaa0 inherit pub_methods_class_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_static_attribs_class_widget"><td colspan="2" onclick="javascript:toggleInherit('pub_static_attribs_class_widget')"><img src="closed.png" alt="-"/>&#160;静态 Public 属性 继承自 <a class="el" href="class_widget.html">Widget</a></td></tr>
<tr class="memitem:aab7e81b741f5bda3a16da64b92ec6b63 inherit pub_static_attribs_class_widget"><td class="memItemLeft" align="right" valign="top"><a id="aab7e81b741f5bda3a16da64b92ec6b63"></a>
static const int&#160;</td><td class="memItemRight" valign="bottom"><b>WidgetStateCount</b> = 4</td></tr>
<tr class="separator:aab7e81b741f5bda3a16da64b92ec6b63 inherit pub_static_attribs_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_class_widget"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_widget')"><img src="closed.png" alt="-"/>&#160;Protected 属性 继承自 <a class="el" href="class_widget.html">Widget</a></td></tr>
<tr class="memitem:a03d44eed5351686d2165e6bc3c3f19ea inherit pro_attribs_class_widget"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_rect.html">Rect</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_widget.html#a03d44eed5351686d2165e6bc3c3f19ea">m_geometry</a></td></tr>
<tr class="separator:a03d44eed5351686d2165e6bc3c3f19ea inherit pro_attribs_class_widget"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_class_object"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_object')"><img src="closed.png" alt="-"/>&#160;Protected 属性 继承自 <a class="el" href="class_object.html">Object&lt; Widget &gt;</a></td></tr>
<tr class="memitem:a98a7eb09cd4383b747b3e73eda0215e4 inherit pro_attribs_class_object"><td class="memItemLeft" align="right" valign="top"><a id="a98a7eb09cd4383b747b3e73eda0215e4"></a>
<a class="el" href="class_widget.html">Widget</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>m_parent</b></td></tr>
<tr class="separator:a98a7eb09cd4383b747b3e73eda0215e4 inherit pro_attribs_class_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a33edb9c86f8fb8d641f185cbf5173821 inherit pro_attribs_class_object"><td class="memItemLeft" align="right" valign="top"><a id="a33edb9c86f8fb8d641f185cbf5173821"></a>
std::list&lt; <a class="el" href="class_widget.html">Widget</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>m_childrenList</b></td></tr>
<tr class="separator:a33edb9c86f8fb8d641f185cbf5173821 inherit pro_attribs_class_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>游戏默认窗口控件 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a5b1ac889ada43cec68c422ddaf487139"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5b1ac889ada43cec68c422ddaf487139">&#9670;&nbsp;</a></span>getDefultHeight()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int DefultWidget::getDefultHeight </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取这个控件的默认高度 </p>
<dl class="section return"><dt>返回</dt><dd>int 开发新的控件一般需要重写这个函数，以便提供适应该控件的默认高度 </dd></dl>
<dl class="section see"><dt>参见</dt><dd>int <a class="el" href="class_defult_widget.html#a92655c22800a5be191238d34d163d803" title="获取这个控件的默认宽度">getDefultWidth()const</a> </dd></dl>

<p>重载 <a class="el" href="class_widget.html">Widget</a> .</p>

</div>
</div>
<a id="a92655c22800a5be191238d34d163d803"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a92655c22800a5be191238d34d163d803">&#9670;&nbsp;</a></span>getDefultWidth()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int DefultWidget::getDefultWidth </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取这个控件的默认宽度 </p>
<dl class="section return"><dt>返回</dt><dd>int 开发新的控件一般需要重写这个函数，以便提供适应该控件的默认宽度 </dd></dl>
<dl class="section see"><dt>参见</dt><dd>int <a class="el" href="class_defult_widget.html#a5b1ac889ada43cec68c422ddaf487139" title="获取这个控件的默认高度">getDefultHeight()const</a> </dd></dl>

<p>重载 <a class="el" href="class_widget.html">Widget</a> .</p>

</div>
</div>
<a id="ab041d606df3c6c2db740875f97bef07b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab041d606df3c6c2db740875f97bef07b">&#9670;&nbsp;</a></span>onMousePressEvent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DefultWidget::onMousePressEvent </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_event_mouse.html">EventMouse</a> *&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>鼠标键按下事件 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname"><a class="el" href="class_event_mouse.html" title="鼠标事件">EventMouse</a></td><td>* event 键盘事件 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

<p>重载 <a class="el" href="class_widget.html#ae83090655af4e7c8d2158600c2c26f94">Widget</a> .</p>

</div>
</div>
<a id="a1fabd4a6f7c78ba39f8b136b8c7c3831"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1fabd4a6f7c78ba39f8b136b8c7c3831">&#9670;&nbsp;</a></span>onMouseReleaseEvent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DefultWidget::onMouseReleaseEvent </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_event_mouse.html">EventMouse</a> *&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>鼠标键弹起事件 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname"><a class="el" href="class_event_mouse.html" title="鼠标事件">EventMouse</a></td><td>* event 鼠标事件 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

<p>重载 <a class="el" href="class_widget.html#ab11f034a2dea14ad22a3bf3755d18318">Widget</a> .</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/code/SkyGameEngine2d/src/ui/<a class="el" href="_defult_widget_8h_source.html">DefultWidget.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
